Updating project Makefiles

The SNiFF+ Make Support has been modified and is no longer compatible with the Project Makefiles of earlier versions so you will need to update the Makefiles. To update project Makefiles, do the following:

| Note
| For upgrading Java projects, please refer to the technical reference in the Java tutorial.

| Note for Windows users
| In the following section, there are several references to symbolic links. Windows does not, however, support symbolic links. So, wherever symbolic links are created by SNiFF+ on Unix, local copies are made on Windows. Therefore, if you are working on Windows, please read all references to "symbolic links" as "local copies" in the following.

In the SiteMenus.sniff file
The

SiteMenus.sniff file is in the SNIFF_DIR/config/ directory.

- Open

SiteMenus.sniff in an editor.
- Under
# Patch Makefiles for New MakeSupport
uncomment the following lines:
# >Makefiles
# shell "Update Makefile(s) for New Makesupport" "echo Updating File %f; sh $SNIFF_DIR/make_support/ UpdateMakefile.sh %f"
or
In the UserMenus.sniff file
The UserMenus.sniff file is in the % SNIFF_DIR%\Profiles\< Username >\ directory on Windows, and in your $HOME/.sniffrc/ directory on Unix.

- Open

UserMenus.sniff in an editor.
- Copy the following lines from
SiteMenus.sniff to UserMenus.sniff :
#Patch Makefiles for New MakeSupport
#>Makefiles
# shell "Update Makefile(s) for New Makesupport" "echo Updating File %f; sh $SNIFF_DIR/make_support/ UpdateMakefile.sh %f"
- In
UserMenus.sniff , under
# Patch Makefiles for New MakeSupport
uncomment the following lines:
# >Makefiles
# shell "Update Makefile(s) for New Makesupport" "echo Updating File %f; sh $SNIFF_DIR/make_support/ UpdateMakefile.sh %f"
In the Project Editor

Load the project created with an earlier SNiFF+ version.
In the Filter dialog, File Types view, make sure that Makefiles are selected.
In the File List, select all Makefiles.
If the Makefiles are read-only, check them out by choosing File > Check Out.
Choose Makefiles > Update Makefiles for New Makesupport.
This command runs a script which removes the following lines from the selected Makefiles:

include $(SNIFF_MAKEDIR)/$(SNIFF_VPATH_INCL)
include $(SNIFF_MAKEDIR)/$(SNIFF_OFILES_INCL)
include $(SNIFF_MAKEDIR)/vpath.incl
include $(SNIFF_MAKEDIR)/ofiles.incl
Also replaces:
INCLUDE = $(SNIFF_INCLUDE) <other includes> with
SNIFF_INCLUDE += <other includes>
and inserts
SHARED LIB_TARGET
It is necessary to remove these lines since the vpath.incl and ofiles.incl files are no longer generated by the new Make Support, so trying to include them would result in an error.